package com.xunlai.infra.permission.business.converter;

import com.xunlai.infra.permission.business.dao.entity.Area;
import com.xunlai.infra.permission.business.dao.entity.ScenicArea;
import com.xunlai.infra.permission.business.vo.scenic.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 8/23/23 5:18 PM
 */
@Mapper
public interface ScenicAreaConverter {
    ScenicAreaConverter INSTANCE = Mappers.getMapper(ScenicAreaConverter.class);

    ScenicArea convertCreateVo2Entity(ScenicAreaCreateVo scenicAreaCreateVo);

    ScenicAreaListVo convertEntity2ListVo(ScenicArea scenicArea);

    ScenicArea convertQueryVo2Entity(ScenicAreaQueryVo scenicAreaQueryVo);

    ProvinceListVo convertAreaEntity2ProvinceListVo(Area area);

    AreaListVo convertAreaEntity2ListVo(Area area);
}
